package com.stox.client.ui.javafx.screener.application;

import com.stox.client.ui.core.application.AbstractApplication;
import com.stox.client.ui.javafx.screener.view.ScreenerView;
import com.stox.shared.core.i18n.MessageSource;

public class ScreenerApplication extends AbstractApplication{
	
	public static final ScreenerApplication INSTANCE = new ScreenerApplication();
	
	private ScreenerView screenerView;
	
	private ScreenerApplication() {
		
	}

	@Override
	public void show() {
		if(null == screenerView){
			screenerView = new ScreenerView();
		}
		super.show();
		screenerView.open();
	}
	
	@Override
	public void hide() {
		super.hide();
		screenerView.close();
	}
	
	@Override
	public String getName() {
		return MessageSource.get("Screener");
	}

}
